package edu.fpa.day0724;

public class TestString {
    public static void main(String [] args){
        String a="core    Java";
        String b="Core    Java";
//        System.out.println(a);
//        System.out.println(a.charAt(3));
//        System.out.println(b.length());
//        System.out.println(a.equals(b));
//        System.out.println(a.equalsIgnoreCase(b));
//        System.out.println(a.indexOf("ava"));
//        System.out.println(b.indexOf("banana"));
//        System.out.println(a.replace(' ','$'));
        System.out.println(a.startsWith("core    Jav"));
        System.out.println(b.endsWith("Java"));
        System.out.println(a.substring(3));//提取
        System.out.println(b.substring(1,3));
        System.out.println(b.toLowerCase());
        System.out.println(a.toUpperCase());
        System.out.println();
    }
}
